//
//  bottonView.swift
//  我的微博练习
//
//  Created by zhangguo on 15/10/14.
//  Copyright © 2015年 zhangguo. All rights reserved.
//

import UIKit

class bottonView: UIView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setUpUI()
    }
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    //设置界面
    private func setUpUI() {
        backgroundColor = UIColor(white: 0.95, alpha: 1.0)
        //添加控件
        addSubview(forwardButton)
        addSubview(commenButton)
        addSubview(likeButton)
        //自动布局
        ff_HorizontalTile([forwardButton,commenButton,likeButton], insets: UIEdgeInsetsZero)
        
    }
//    /懒加载控件
    private lazy var forwardButton: UIButton = UIButton(title: " 转发", imageName: "timeline_icon_retweet")
      private lazy var commenButton: UIButton = UIButton(title: " 评论", imageName: "timeline_icon_comment")
      private lazy var likeButton: UIButton = UIButton(title: " 赞", imageName: "timeline_icon_unlike")
}
